// 删除计划
const { ObjectId, ObjectID } = require('mongodb');
const {
    DayPlan
} = require('../../../model/plan/dayPlan');


module.exports = async (req, res) => {
    let id = req.query.id;
    DayPlan.findOneAndDelete({ _id: ObjectId(id) }).then((result) => {
        res.send({ 'code': 0 });
    })
}